﻿using ScanFile.Dal;
using ScanFile.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bll {
  public partial class FolderExBll : BaseBll<FolderEx> {

    private FolderExDal folderExDal;

    /// <summary>
    /// 构造函数
    /// </summary>
    public FolderExBll() {
      folderExDal = new FolderExDal();
    }

    public System.Int64 InsertList(List<FolderEx> folderExList) {
      return folderExDal.AddList(folderExList);
    }

    public System.Int64 InsertOne(FolderEx folderEx) {
      return folderExDal.Add(folderEx);
    }


    public System.Int64 UpdateEntity(FolderEx folderEx) {
      return folderExDal.UpdateById(folderEx);
    }

    public List<FolderEx> GetListByParentFolder(string folderPath) {
      return folderExDal.GetListByParentFolder(folderPath);
    }

    public FolderEx GetFolderExByPrimary(string id) {
      return folderExDal.GetFolderExByPrimary(id);

    }

    public System.Int64 DeleteFolderEx(string folderExId) {
      return folderExDal.DeleteFolderEx(folderExId);
    }


    public System.Int64 DeleteOrphanFolderEx(string folderFullName) {
      return folderExDal.DeleteOrphanFolderEx(folderFullName);
    }

  }
}
